Dipole modes of a trapped bosonic mixture: Fate of the sum-rule approach