Fix an error when setting the legend position to 'none'

When setting the legend position to 'none' the gem crashes because it tries to access the "legend" var instead of the existing "@legend" initialized by the "set_default_properties" method.

Note that setting the legend position to 'none' still has no effect on the graph (the legend is still visible at the bottom).