Good catch.
Any chance you could prepare a PR? It would be nice to add a test to ensure everything works fine. We already have some tests in DialectResolverTest but they should be extended.