Bug 842702: Don't attempt to use undefined or null as valid images for context-menu items.
Bug 842702: Add tests for empty data and label properties and address review comments.
Merge pull request #805 from Mossop/bug842702

Fix Bug 842702: Don't attempt to use undefined or null as valid images for context-menu items. r=@erikvold