Query is in Preparation, but in a branch of logic that is not always going to be run.
In the Preparation, actions outside the guaranteed scope of the query cannot use it.
But on the screen, they can.
Result: binding data to queries that will not always have results, and errors.
Suggestion: do not allow access to query results on the screen unless the query is in a logic path that will always be run.