pglogging: Do not create error log if no exception occurred
pglogging: Do not create error log if no exception occurred

This is only relevant to the `LOG_EXCEPTIONS_ONLY` mode.

khalim19/gimp-plugin-export-layers,khalim19/gimp-plugin-export-layers