Extending Wertheim's perturbation theory to high‐density molecular solids