deactivate a subscription if its end date is changed to today

Fixes a problem where an active subscription will never be deactivated if its end date is changed to today.

@biyeun