Don't allow to add tasks when context menu is open.

Otherwise it's confusing, because after you add you'll open a new
context menu.