[FIX] edit: Check for existence of valid structure when testing global $tiki_p_edit on creating a new page (thanks marclaporte)

git-svn-id: file:///var/local/code.tiki.org/tikisvn/branches/12.x@50791 b456876b-0849-0410-b77d-98878d47e9d5