Make sure we always return a total_page even if it is when something went wrong