Fixed JS errors on empty series on secondary axis when tickPositions were defined. Closes #2482.