Fixed a bug in IE7

if tickPositions is null, then this throws an error in IE7