Throw an exception if an non-existing file instance is requested. Closes #1248