Fix infinite loop, when webpage for inexistant chapter exists