Experimental deterministic correction of qubit loss