revert "fix load_pkg_for_entry (clang-analyzer)"

This was the wrong thing to do, oops.