If your motorcycle begins to wobble, you should:

Trying to accelerate out of a wobble will only increase the problem. Instead, grip the handlebars firmly, slow down while gradually closing the throttle, move your weight as far forward and downward as you can, and pull off the road as soon as you can. Once off the road, you should address the problem causing the wobble.
DMV Writen Test