Fixed #3871 -- Custom managers when traversing reverse relations.