Issue #995 (paging; `undefined` & last word fixes)

The user interface is now protected from `undefined` values,
and displays blank when paging is off.

The bug with the last sentence being chopped off at the last word
is fixed.