Fix an exception thrown when clicking the heading toolbar buttons twice.

You can reproduce this by clicking either the h2 or h3 toolbar buttons twice. I believe this is just a typo.