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.
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.