Since the filter hadn't been changed regularly before you got it, the connector can be tough to get off. The terminals can spread making an intermittent connection. Corrosion on the terminals can also be a cause.
Sorry I didn't think of it sooner. Been in a fog lately.
Sent from my MB860...