If your motorcycle starts to wobble, you should:

Do not try to accelerate out of a wobble because doing so will only make the motorcycle more unstable. Instead, grip the handlebars firmly, slow down by gradually closing the throttle, move your weight as far forward and downward as possible, and pull off the road as soon as you can. Avoid applying the brakes, as this may also worsen the wobble.
DMV Writen Test