[FEATURE query-params-new] Fix null QP check in transitionTo

redirecting with a null model was hitting some breaking code with QP flags
enabled.