Do not pass nulls to Linker::link

That warning is flooding our logs

Bug: 71168
Change-Id: Idac0a66d918330f65d43d4b6dd1948efc4a7f292