Yep, as per the 'wheelie' thread you can get very cheap tilt switches from Maplin that switch off at various preset angles. They range all the way from 10 degrees (that would play havoc with your lean angles though) to 80-90 degrees by which time the bike would be on it's side
I would have thought that you could easily wire one of these in series with the kill switch, so that effectively the kill switch is automatically enabled and disabled. The kill switch cuts power to the FI system, the ignition and the starter motor if I remember right, so if the bike was on it's side all of this stuff would be disabled, pick it up again and everything should come back to life ready to start as soon as you hit the starter - unless you've totalled the bike of course