Fix #2337: Added a warning to prevent accidently deleting a page