Fixed an exception raised with empty json requests.