Fixed: setCurrentPage checks to make sure it's going to set a valid page

Fixes #214