Fix a crash when italics and bold overlap in certain situations