If there's a MediaInfo item in a slot on page with id <x>, then the MediaInfo item's id is M<x>, and the MediaInfo code depends on this being the case
Sometimes the page id can change (under certain circumstances during delete/restore, apparently - even though we haven't been able to reproduce it) and that causes a fatal error if the page has a MediaInfo slot, because the ids no longer match
Investigate removing the interdependence of the ids