Fixed error when raising SyntaxError in datalayer query parser.