[RJA-2784][fix] - Avoid IllegalStateException when trying to send error ...

...to client