Issue #410: handle the case where left-over records are present in the
files table with no corresponding entry in the pkg table.