Fix for Opera when dealing with an empty/error response

This should account for the JSON parser throwing an error when dealing with a partial/empty/error response, which crashes SockJS in Opera.