set an elevated throttle and hold it there, not screaming, but it should be up and steady, listen for it, keep the clutch in the friction zone, and lightly add some back brake, not hard just so you feel the pull, from the back. If you do this while traveling slow, you will have total control, and in a situation like the one you were in, because you have an elevated throttle, you have power available to you, all you need to do is slightly let the clutch out a bit, this will give it a little more grab and the bike will stand up right away. If you use this technique you can lock the steering all the way over one way or the other, and do circles all day without worrying about tipping over.
Think of it like stretching the bike out, if you have an elastic band between your hands and they are close together, the elastic is loose and sloppy, move your hands apart and it becomes tight and more solid. When you have an elevated throttle, and the clutch in the friction zone, you have this pulling the bike forward, the minute you lightly apply some rear brake, this is pulling backwards on the bike, so because you have the pulling forces working in opposite directions, it causes the bike to become more stable and it wants to be upright. If it starts to tip to far over, you let the clutch out slightly and it pulls you back up straight again, it feels weird until you get used to it.
Once you get the hang of it, and get comfortable, it becomes natural to really corner the bike and be comfortable with it, i have gone into corners doing 50-60Km/h and dragged the floor boards doing it, then went looking for the next corner to do it all over again. While playing around with slow speed maneuvers, i have had the bike over far enough to lift the floor board, and start scraping the frame that the floor board is connected to. I really need to stop doing that