sparklines bugfix

when using an empty segment parameter, clicking a sparkline resulted in the error "Segment parameter 'undefined' does not appear to have a valid format."