Prevent crash from ruby on spline generation if empty splines are given

The Task inspector seems to pass a empty structure first which should be
filled later. This commit prevents a crash there by passing a empty
spline here.