Fixed issue with legend box not reserving space for legend title. Closes #1717.