If reviewed pages were deleted and then undeleted, then something strange happened: it is marked both as reviewed and non-reviewed. Example: https://ru.wikipedia.org/w/index.php?title=%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B0%D0%BD%D0%B4%D1%80_%D0%A0%D0%B0%D1%84%D0%B0%D0%B8%D0%BB%D0%BE%D0%B2%D0%B8%D1%87_%D0%9A%D0%BE%D1%80%D1%81%D1%83%D0%BD%D1%81%D0%BA%D0%B8%D0%B9&redirect=no
Now this redirect page looks OK, but only after unreview and then again review action.
The problem is that after restoring reviewed page, FlaggedRevs::newFromTitle returns NULL. I can not figure out why
It is the same not only for redirects, but for all pages, in all namespaces.