StageBuilder::build() should return an error (or trip an invariant) when given a QuerySolution created from a match predicate that includes a TextNoOpMatchExpression or a WhereNoOpMatchExpression. The query execution logic does not expect query solution nodes created from these expressions, and the execution tree created from such a query solution could generate incorrect results or crash the server.
There are currently no known ways to currently trigger this condition, but it is easy to introduce a regression by accident that triggers this (for example, by mistakenly passing an ExtensionsCallbackNoop object instead of a ExtensionsCallbackReal object to CanonicalQuery::canonicalize() in the wrong place).