Trying to get the type mask of the QWBUF caused debug assertion in the query classifier when using some commands. Now type mask is checked only when the buffer contains MXS_COM_QUERY command.