This method safely retrieves a Y Axis instance from either the YAxisList
or the Y2AxisList using the values of YAxisIndex and
IsY2Axis. If the value of YAxisIndex is out of bounds, the
default YAxis or Y2Axis is used.
