Bugfix JXG.Ticks creator function

If only one parent was given the creator function would throw an exception instead
of using the fallback to the ticksDistance in the attributes (which defaults to 1).