Empty 400 500

fixes a problem where passing an empty post body with an expected json argument would throw a 500.

Fixes #50