Gracefully handle the case where the token stream just contains the END token and an error occurs.