Fixes #4355 - 500 error messages are ignored