Fix exception on patient summary page (seen_bodies outside loop)