Corrected a core data migration crash if the username is empty and also ...

...prevent a crash if the password is removed from the keychain