Fix exception when linking with invalid object.
Fix exception when linking with invalid object.

If you declare_dependency(link_with : 'string'), an exception is
supposed to be raised, but instead of a proper message, it's an
exception about a missing attribute.

MathieuDuponchelle/meson,pexip/meson,mesonbuild/meson,mesonbuild/meson,becm/meson,trhd/meson,rhd/meson,MathieuDuponchelle/meson,fmuellner/meson,jeandet/meson,rhd/meson,wberrier/meson,aaronp24/meson,QuLogic/meson,aaronp24/meson,MathieuDuponchelle/meson,ernestask/meson,fmuellner/meson,becm/meson,aaronp24/meson,fmuellner/meson,trhd/meson,jpakkane/meson,ernestask/meson,QuLogic/meson,mesonbuild/meson,rhd/meson,becm/meson,ernestask/meson,aaronp24/meson,wberrier/meson,QuLogic/meson,jpakkane/meson,jeandet/meson,jeandet/meson,MathieuDuponchelle/meson,QuLogic/meson,trhd/meson,QuLogic/meson,thiblahute/meson,wberrier/meson,jpakkane/meson,MathieuDuponchelle/meson,mesonbuild/meson,mesonbuild/meson,trhd/meson,wberrier/meson,rhd/meson,ernestask/meson,aaronp24/meson,QuLogic/meson,thiblahute/meson,jeandet/meson,thiblahute/meson,MathieuDuponchelle/meson,trhd/meson,becm/meson,becm/meson,fmuellner/meson,pexip/meson,jpakkane/meson,mesonbuild/meson,becm/meson,wberrier/meson,becm/meson,jpakkane/meson,jpakkane/meson,jeandet/meson,aaronp24/meson,trhd/meson,MathieuDuponchelle/meson,trhd/meson,rhd/meson,mesonbuild/meson,QuLogic/meson,pexip/meson,trhd/meson,pexip/meson,aaronp24/meson,mesonbuild/meson,ernestask/meson,ernestask/meson,thiblahute/meson,becm/meson,fmuellner/meson,pexip/meson,wberrier/meson,rhd/meson,becm/meson,MathieuDuponchelle/meson,mesonbuild/meson,aaronp24/meson,jeandet/meson,thiblahute/meson,jpakkane/meson,rhd/meson,ernestask/meson,jpakkane/meson,rhd/meson,fmuellner/meson,ernestask/meson,jeandet/meson,becm/meson,thiblahute/meson,pexip/meson,mesonbuild/meson,thiblahute/meson,thiblahute/meson,jpakkane/meson,ernestask/meson,fmuellner/meson,QuLogic/meson,fmuellner/meson,pexip/meson,jeandet/meson,pexip/meson,jeandet/meson,wberrier/meson,pexip/meson,thiblahute/meson,MathieuDuponchelle/meson,trhd/meson,wberrier/meson,QuLogic/meson,fmuellner/meson,aaronp24/meson,pexip/meson