 
       return if KD.showError err
 
-      if credentials.length is 0
+      if credentials.length is 0 and @addCredentialForm?
         @credentialBox.hide()
         @instanceListView.hide()
         @addCredentialForm.buttons.Cancel.hide()


    info "Credential selected:", value

    if value is "_add_"
      @instanceListView.hide()
      @credentialBox.hide()
      @addCredentialForm.setClass 'in'

      @credentialBox.setSelectOptions
        "Select credential..." : @_credOptions

      @credentialBox.show()  if @addCredentialForm

      value = credentialKey ? @_credOptions.first.value
      @credentialBox.setValue value
      @showAvailablesFor value
