Fix the bug in Optional parser that consumes input
if the given parser partially matched.