Close optional tags wherever possible

Instances were found using a format.py that I'm working on, that can be less complicated by being more stupid. I verified that I didn't accidentally change stuff by comparing the before and after HTML files using worddiff.py from https://github.com/foolip/epubbase