Fix registry credentials so that it doesn't crash
Fix registry credentials so that it doesn't crash

Object destructuring expects the entire object to be present. When
'Available to all namespaces in this project' is used the namespace
object isn't defined which causes the save to fail due to an null
exception.

rancher/rancher#26981

rancherio/ui,vincent99/ui,rancher/ui,rancherio/ui,vincent99/ui,vincent99/ui,rancherio/ui,rancher/ui,rancher/ui,westlywright/ui,westlywright/ui,westlywright/ui