Only check if resource exists

The resource is just a handle, the file can be deleted in the mean time.
In particular this can happen during refactoring of a class file.

fixes #4