Clear stateChar before pipe in extglob

Fixes the same bug as #21 but for special chars at the end of one pattern instead of at the end of the whole pattern list.