Fixed #5310 (Internal error: match compiler returned different result than parsed match)