Fixes undefined variable notices when resultsPerPageList in json data is...

... empty