minor fixes for recent twig patient summary improvements (#4627)