Reworked _get_task_css_class helper, it uses now task objects `get_css_class` method.