Adding a check to ensure that an exception cannot have the emitted error setting set to false