don't cancel a subscription that has already ended

fixes http://manage.dimagi.com/default.asp?101508#575637