Fixed NPE in HalResourceImpl.addCurie()