Solved pagination problem.

There is a pagination problem based on ElasticaDataProvider.php. You can see it when you try to go to last page from pagination (when you do this, it goes to first page).