Revisiting the variational nature of the quantum theory of atoms in molecules