Fix ticks inf

Update implementation of https://github.com/enthought/chaco/pull/126