Gracefully handle the q param being empty

Until recently we could rely on gds-api-adapters, which would return an empty
array if the query was blank. Now though, we are expecting a Hash, so we get an
errror.

With this change we check the param ourself and reply accordingly.