Fixed MenuItem NPE. Closes #902.
Merge pull request #955 from yanchenko/902_fix

Fixed MenuItem NPE. Closes #902.