Catch errors when reading installed version from registry

The Python uninstaller leaves some trails in the registry. In 
such a case, accessing the `InstallPath` entry will fail.