Main window: Fix pyinsane exceptions handling when the scanner is not connected

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>