[Minor] Added exception when adding a resource which already exists