Fix bug for valid-but-empty XML dependency file.

[Fixes #72784198]