Prevents NPE on last step of routing.