MDL-43797 lib/db/upgrade.php: Remove custom pages for deleted users

Change-Id: I51f7d11abdf559944e18891703611dbd729cde64