Bugfix : avoid NPE when TaskReference points on no task