Bug 906589 - crash on getting text attributes on document with no body, r=marcoz