! $settings['page_index'] wasn't defined for wap/wap2/imode (fixes #2040)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>