Check first whether a selection exists before doing anything else (thanks Gregor).
-rw-r--r-- 8005 gimp_passport.py
-rwxr-xr-x 1952 gimp_passport_plugin.py
-rw-r--r-- 2400 test_gimp_passport.py