LPS-38130 fix the delete missing pages feature (includes test)