Fixed stream corruption due to missing attachments with exception response handler.