Catch ValueError raised when no JSON on request object