Follow-up r67324: removed check for empty text since the length is checked explicitly