Support null as input for query.createValueMatcher