JBIDE-12175

Check that uri exists before adding to store.