Fix small bug in ` _mark_relational_changes_for`; check if `obj is None` before checking if it's an instance of `RelationalManagerMixin`