adds a check for segments.length in DashHandler.isSegmentListUpdateRequired
fixes top index value in DashHandler.getIndexForSegments
fixes jshint errors