Deal with reftests errors e.g. when the ref is missing.