Only export counters in TaskVars after SchedulerActive event.

Bugs closed: AURORA-59

Reviewed at https://reviews.apache.org/r/17095/