language_module_dependency: handle nil import_name
dependency_collector: pass second tag as import.

Closes #27346.