Fix PHP warning when missing custom menu
Fix #165