Instead of returning the default bounding box or the result, throw a `DeveloperError` here. Passing an `undefined` or empty list of positions is probably not intentional. Also, move this check before the `result` parameter is checked.