Improve error handing if using CKAN API client for a Socrata data catalog

Socrata returns JSON where the "error" key is a boolean. The CKAN API client expects the "error" key to be a dictionary. If "error" is not a dictionary, make it an empty dictionary.

Without this PR, you get a ridiculous `AttributeError: 'bool' object has no attribute 'get'`.