Fixed issue with error when parsing a query with an incoming message