bug fix in replaceUnionWithStruct

simply return from the function if ``union''
is not presented