Support nullable relationships in the router