jasmine.ContextMenuPopup renderMenuItems considers visibility when adding last and first classes (from jasmine.specs)