Use TextContentHandler::getContentClass()

See I70f1a3291 in core

Change-Id: I1006be1827531e195930cc4d8a3ea9e415291879
Merge "Use TextContentHandler::getContentClass()"