Josh Duhamel takes over role in J.Lo’s ‘Shotgun Wedding’