fixed fatal error on new menu creation, fixes dioscouri/amritasingh-f3#48