Fix crash when trying to make a KDM on an unencrypted project.