ae27a548f8
Constraints are deleted before rigid bodies so need to check if constraint exists in case both the constraint and ridid body are on the same object.