Added null checks on active tasks.
Removed the non-serializable atribute on IsActive.