Prevent divison by zero error when unspecified page_length