Protection from negative result offset

Issue when getCurrentPage returns 0, offset becomes -10