Fixed colors/states not changing on subsequent database connection attempts in installer (Fix #3453)

#3453 (Yes, that's an issue from 2011)