Fix crash when attempting to focus when no items are visible.

Judging from stack, monkey test is somehow getting into a state
where no items are currently visible. Safeguard this edge case
from crashing.

Test: docsui unittest
Change-Id: I10dee1dfd8373012f4a1bedcbda851653c12f5ee
Fixes: 64589752
4 files changed