Fix crash: if the credentials cannot be cast, don't deref, assume change