Fix in `EarleyParser#parse`method

Prevent call to `scanning` method after last token was processed.