core: Fix segfault in LoggerFactory::onConfig

refs: #1579

Change-Id: I5054880d9bc9b6185fab8d43fdaee194f7526965