Added not empty check when creating Uri.Locator from platform path.