Avoid duplicate entries in error json.