I once got a layoff in the end of October from the DBA manager position of the largest internet Auction company on earth due to re-organization. Surprisingly, then still send me the bonus for that quater after several month.
One of my friend, he is doing well in the company, even he told the vp that he is going to resign, the vp still work out the deal with him let him work for the company even he stay in home.
In your case, as long as the company need you, so a simple email you did send out is NOT a big deal. You can send out another email say that is a mistake,you changed your idea please ignore it. (Don't say you just stay for the bonus ^_^)
When I worked at large Japanese Semiconductor company in USA, a guy likes to make joke to people, one day when he saw his friend was not on his desk and leavethe PC was on, he did type a resign email to send to the boss, said "today is my last day". People knew the story, just laughing, because they are all the boss's friends, boss knew it was a joke.
Everything is doable except passport and driver's license. Try you best to get what you want. There is nothing to worry about.
Thanks!