Fix context menu events being fired with undefined parameter.
Merge pull request #63 from gsidler/fix-for-context-menu

Fix context menu events being fired with undefined parameter.