Modify pagination the behavior of when empty.