Fixed exit code for exceptions with error code 0

Covers https://github.com/symfony/symfony/issues/8180