fix paginator "from" to return 0 if the total is 0
remove extra spaces
Merge pull request #1497 from brunogaspar/patch-1

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