[#1405] Fix support DB2 dialect

[#1405] Avoid NullPointerException if driver is null