Handle the case clone_from is not defined

Line 111 was throwing an exception when calling .id if clone_from
equals null