Ensure that an exception is not swallowed, and return a bad request.
Every other call to getBodyAsDictionary does a null check.