function tryRepairConnectionEnd(moved, other, newDocking, points) {
  var waypoints = points.slice().reverse();

  waypoints = _tryRepairConnectionSide(moved, other, newDocking, waypoints);

  return waypoints ? waypoints.reverse() : null;
}
Repair a connection from end.

@param {Rect} moved
@param {Rect} other
@param {Point} newDocking
@param {Point[]} points originalPoints from moved to other

@return {Point[]|null} The waypoints of the repaired connection.