Issue #3185995. Checks that a username and password is set on the database connection info before reading it. Allows DBAL to be used with SQLite with causing undefined index notices.
Closes #3185995