fix for Django 1.4+ and pagination. Pagination tries to access results as list(object_list) and it never ends if IndexError is not raised in __getitem__