Fix 33627

Fixed the logic when an existing dialect is passed in with keyword args as
well
Merge pull request #161 from slide/master

Fix 33627