Fix artefact retriever error.

Now covered in test as well, even though there is no test change.