Fix notice for hierarchical post types.

Fixes an undefined property notice in the nav-menus metabox for hierarchical post types.