Fix FormRequest's error message handling
Merge pull request #5761 from devonzara/master

[5.0] Fix FormRequest's error message handling