MT#7793 Fix flapping filter

previously it only worked for "end" events like end_huntgroup or end_ivr, but
didn't kick in on the stop_profile event which is generated in case of
subscriber termination.