It should say "in case the primary keys for some documents were missing" (note that "key" should be plural)