Also fixed empty context menu being shown when the list of items is empty (it required the user to click once to close this invisible popup and make other actions work properly)