Only apply maxPerPage from context if a page number has been set (fixes view all)