Avoid crash if gres configuration inconsistent