Fixed bug in searchable Menus with no entries.

Fixes #527.
Merge pull request #530 from johnhaddon/emptyMenu

Fixed bug in searchable Menus with no entries.