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.

Also fix the check on the @legend[:visible] to effectively hide the legend when setting the position to 'none'