fixes #6634 fix empty text validation