Prevented adding tasks when delete button is shown.