Made pagination not make an empty li if there is only one page