Fixed regression issue introduce with Simplify Carbon Platform Logging Story improvement

Fixed regression issue introduce with Simplify Carbon Platform Logging Story improvement

https://github.com/wso2-dev/carbon-utils/pull/14