Handle TextContent::isEmpty() and isCountable() for better statistics

Change-Id: Ifcb66bdca0aaf73150a4b98e871daceb86240424