Enhances removeFilter to remove the last filter added.