Better error messages for AddMenu and AddMenuItem
Added NO_ERROR and default cases. Merged some vars.
Merge pull request #3611 from TomMalbran/tom/fix-issue-3412

Fix #3412: Cryptic error message when addMenuItem() is passed bad args