fix NPE in Locator.hashCode()

left a comment too. Maybe we should consider complaining loudly when someone tries to set the string rep to null.