Added handling for IllegalArtifactReferenceException

- IllegalArtifactReferenceException is a checked exception because in
  most cases it is caused by a configuration error. Having a checked
  exception encourages to add context information in case it is thrown.

Bug: 453446
Change-Id: Ib375201af2ec22075797cb62b9869e4c02b37bc7