Deleting a page and then immediately create-protecting it caused a PHP Fatal error

Change-Id: Ife75371bceda0f5342ee9eb5388d26e0363bebbe
Merge "Deleting a page and then immediately create-protecting it caused a PHP Fatal error"