Fixed js error in Tasks panel search