Catch AttributeError in FlaskParser#parse_json