#589754 by rfay and Crell: Fixed non-recoverable install if invalid database specified in settings.php.