Fix placeholder bug that remained hidden although it should has been shown

Fix placeholder bug that remained hidden although it should has been shown. The following cases have been covered.

1. No tokens - enter text  and delete text
2. One token - delete token