fix paginator "from" to return 0 if the total is 0

Fixed paginator "from" to return `0` instead of `1` if the `total` is `0`.