Fixed an exception raised with empty json requests.
Merge pull request #440 from Archytaus/master

Fixed an exception raised with empty json requests.