Ensuring conditions aren't executed in a CLI context. [#2228101]