error: reference cannot be bound to dereferenced null pointer

...and SwTxtAttr::GetAttr already asserts non-null-ness.

Change-Id: I978f86103e8121e41bf95a2a79cd2263d6e47853