Handle nonexistent packages in Resolve.explicit

Fixes #810.