Fix a case where tryAdvance can throw.