Fix 33627

Fixed the logic when an existing dialect is passed in with keyword args as
well