Fix bug where word counter breaks the styling tooltip (fixes #32)