This is still stupid because Gunray joins anyway without Padme being killed. ???
Maybe he wasn't expecting the Republic to come to Geonosis, and figured that once the war broke out and they found out about his presence there, he was already in too deep to back out?