Actually update edited Google Calendar event; fix variable scope issues.