Fixed Contact Activity filtering JavaScript error