fixes attributeerror while iterating on un-paginated DRF empty response

Similar to #10 but with test (passing).