fixed NPE when remote file not found