Fix error in _diffDeep

Prevent method from being called with an undefined value for object1.