If the HistoryCompletion table is removed, regenerate it from the History table. This allows users to manually edit History, then remove HistoryCompletion to prompt regeneration. See #2903.