Add some more sanity checks in menu_entries.c