AMQ-5281: Incorrect handling of unknown values in selectors

See https://issues.apache.org/jira/browse/AMQ-5281 for details.