Steps to reproduce:
1. Be sure that limit for subitems list is 10 (it will be easier to test)
2. Find folder when you have got miltiplication of the limit of children locations (for example 20 or 30) - it must be multiplication of the limit
3. Use "Last" button of pagination for subitems list
4. Results won't be returned, because offset has been set too high
The reason of that is incorrect calculation for offset for last page which fails in case when total number of results is multiplication of page limit.