Fixed bug when attempting to deep copy null.