Fixes crash if "delete page" was selected in preview of page that being created
Merge pull request #800 from budziq/delete_crash

Fixes crash if "delete page" was selected in preview of page that being created