raise an error if we have no element reference in Rickshaw.Graph