MULE-7769: Fixing bug about static loggers logging into the wrong contex...

...t