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

redirecting with a null model was hitting some breaking
code with QP flags enabled.
Merge pull request #4265 from machty/null-qp-model

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