Prevent collision checks against objects that may have been removed from the scene.

Previously, the call `object2._physijs.id` could be undefined.