Fix issue where error details were prevented from displaying
Merge pull request #518 from zeeman/api_invalidquery_fix

Fix issue where API error details weren't displayed