Avoid dividing by 0

Had a fun error message when a user passed in `per_page=0`.