CurrentTaskGroup bugfix

CurrentTaskgroup == null is now a checked for condition.