Error handling for page extraction