WebCore may refuse to provide an AttributedString (e.g. when inside a password field). Calling functions like CFStringLength on a null argument crashes.
<rdar://problem/9275326>
Created attachment 89301 [details] proposed fix
Committed <http://trac.webkit.org/changeset/83662>.