Prevent huge font sizes from causing nbsp elements to overflow their box

Closes #1274