sanity checks for given index in removeFilter()