Fixed an issue with removeActiveTask undefined var when called via checkDoneTimer