Hide pagination on loading or no results.