Improved continued-fraction treatment of the one-dimensional scattering problem