Imporved error messages when trying to master/clone

- Give proper error when trying to master/clone a resource that is
  already a master or clone.