Fix losing deps in pkg_get_dep_origin.

Regression from [d7ee482581]