Fix for revision 2602 that breaks existing scripts using wait_click(0).
A2300 1.00c port from nafraf:
http://chdk.setepontos.com/index.php?topic=650.msg97386#msg97386
SX50 update from nafraf:
http://chdk.setepontos.com/index.php?topic=650.msg97405#msg97405