Improve error handling in ExtDirect router
Even if something goes wrong in a ExtDirect request, the request gets processed, which lead to unexpected results.
Do not process the request, but just return the error message instead.
The current behavior is especially annoying after the addition of the CSRF protection, because in case of an invalid request, a security token error message is sent, which is wrong.
(issue imported from #M17500)