ParameterFilterElement.ByRules overwrites filter created before

One thing to check on: Element Binding.

Read up on it here: Element Binding in Revit

Try using Dynamo Player to avoid it being added to the file after you strip any bindings.