Heralded Storage of a Photonic Quantum Bit in a Single Atom