I want to call set_exception_handler()
only if no other exception handler has been register before, hence the default handler is in use.
I need that, because I want to log exceptions to file in production code, but I don't want to register exception handler when PHPUnit is running my code, because it need to catch all errors.