Fix for exception caused by malformed error message