do not try to resolve enum abstract constants when the value is null (closes #3181)