update.php
MDL-35851: fix upgrade for corrupted prev/next page id