Fixed double <li><li></li></li> in paginator links

Fixed double <li><li></li></li> in paginator links.
This avoid outputing invalid HTML code *and* solve the issue of the missing left border for the "Previous" paginator button when not on the first page.