fixes #4703 - reset_counters don't work on rails 3.28 for has_many :through