Allow EM
fixes even if msg
variable is defined
#9059
Merged
EM
fixes even if msg
variable is defined
#9059