Fixed issue with deleted ticks from the tickPositions option after zooming in and out. Closes #1565.