TextEditor: Remove redundant null validation

Change-Id: I286b324003554bce3607e685088d4d8406bc6892
Reviewed-by: Eike Ziller <eike.ziller@digia.com>