#3845: Prevent notice in preprocess_menu_tree