U4-5003 - Parameter checks

This is just a small addition to previously accepted pull request #448.  I don't believe this can be triggered from the UI but currently there's nothing to stop a request for a page size of zero being passed to the repository which would cause an error.  This PR puts some checks in for this.