Fixed ResourceLocator not being compared for equality correctly