Do not display links to tasks when none is visible

Change-Id: I8ce60e26abbe31951bfec22ea6dc734b136e7e24