When submitting a POST request to create a new form with an inexistent entity in the body, this cause a 500 error instead of a 400 one. Originally reported by @aledeg in https://github.com/api-platform/api-platform/issues/88.