fix unsubscribe 500
Merge pull request #1293 from dimagi/unsubscribe

fix unsubscribe 500