improve error messages for bad WQL

Ticket

+commit
 

I made some WQL with a missing comma and got "error rendering error message for bad WQL (core view)". To see the error message I have to hover over the link, and even then it has a bunch of HTML entities which makes it difficult to parse.