Fix parsing of _query for REST GET routes