fix(headerBarView): check for null in getTextBounds

In Android <= 4.3, getBoundingClientRect does not return a rect for a
text node, closes #1377.