Fixed configuration via array bug

When configuring via an array, the config wasn't checked and the driver
wasn't parsed from the DSN. Fixed by moving the check one level up.