Fix error when pageSize paramter is not supplied to the model controller