fix compliance for non-default logback implemenatations

When Neo4j is used in an embedded scenario where a custom implementation of logback's StaticLoggerBinder is used, the returned instance of getLoggerFactory might not implement LoggerContext.
In this case we should gracefully fall back to use ClassicLoggingService.