Update AbstractContainer.php

In a container can retrieve the first page but not the last. And it is possible to retrieve the next page but not the previous.