Backport PR #5804: remove an inappropriate `!`

The logic was backward, causing input prompt not to be set when many executions were submitted simultaneously.

closes #5800