Revisiting the Bethe-Hessian: Improved Community Detection in Sparse Heterogeneous Graphs