PMO-2599: avoid crashing for enums in resource parameters