fd92647f34
The function didn't return early in case the domain was empty. The fix makes sure we return an empty `MutableSpan` in this case (add doesn't try to create a new custom data layer).