fix undefined method `datapoints_svg_url' for nil:NilClass