[3.8] Fix #1689 : Discard wrong XML errors