I don't think you really have to look at it, just turn line 93 from blindly trying to transfer DNA to doing it after checking if there's DNA to transfer.

	if(H.dna)	brainmob.dna = H.dna