fix(task history): load history on task change only if tab is active

when the user changes the task, the history of the new task is loaded if
and only if the history tab is active

related to CAM-2769