[beta] Removing 0 elements is an explicit no op.

fixes #3945