Fix null reference exception in database connection dialog.

The Add button was being enabled when the selected database
changed but on connecting to the server again the selected
database was cleared but the Add button was not disabled.