Only nullify the keyId if we found the related model