Solve the crash with Clear I derived

Check pointer before calling the setText method.

re #7118
Merge remote-tracking branch 'origin/feature/7118_sans_crash'