Fix Search Crash

Searches were crashing because we weren't properly returning an empty
JSON Array. Made it so an actually blank array is returned. Also, added
a check for the error message given by the new API in response to an
empty search result list.