Fix next and previous buttons to take into account unpublished chapters