Backend script alt_doc.php considers deleted alternative page languages for record translation
Arbitrary records on pages can be localized to languages which are stored as "Alternative Page Languages" on the same page.
The backend script alt_doc.php even considers deleted pages_language_overlay records when determining in which language a
record can be/is localized.
The code in question misses applying t3lib_BEfunc::deleteClause().