setCurrentPage throw LessThan1CurrentPageException

setCurrentPage is supposed to throw a LessThan1CurrentPageException when the given currentPage is < 1, which wasn't the case, as it replaced any < 1 value by "1".