Fixes #2434 Prevents whitespace only tags from being created