Hypertree Decompositions Revisited for PGMs