Bug in PaginatedList

Corrected a bug when the data returned by the method
requestJsonAndCheck is None. Added a check.