Fix crash on adding a KDM to a DCP (hopefully #645).