#811790 by Dave Reid: Stop-gap fix when modules xmlsitemap.module is uninstalled before any sub-modules which want to delete link records.