SONAR-3257 use max size when pageSize<=0