Respond correctly to a json request with no query

Currently this will raise an exception due to a missing json template.
Make it return something in the correct format.
Merge pull request #600 from alphagov/no-query-json

Respond correctly to a json request with no query