Check that OpenStruct exists before patching