lib: fix the “artifact-literals Vs conditions” bug

Targets involving artifact-literals that did not ensure their own
condition were set as succesful.