Fixed mono fix by checking if the Enum value exists in the runtime.