conditionally handle nested sortables, so that in modern versions callbacks are called properly