Chaos and overstability in the thermal convection of viscoelastic fluids