Fix a bug handling cases where RemoteStorage returns a blank directory listing.