properly handle invalid paging param