Return an empty rect for getBoundsForSpan if the text layout is null. Bug: 30554641 Change-Id: Ia5affea014bf994170291978f10690083d786577 (cherry picked from commit 07df2a74)