fixed popup menu bug

popup menu no longer displays if no items are present