Fix broken cancel url for patients with no episodes