Fixes crash when chapter is not available on the site

This fix prevents the script from crashing when a chapter is not found on the site. Should provide a cleaner error message when issues like Issue 52 occur