Replace for invalid $serverContext->getLogger() invokation with $serverC...

...ontext->hasLogger()