SI-7102 efficient isEmpty for bitsets

Override isEmpty for bitsets with a specialized implementation rather than use default checking for size == 0.
Target 2.10.x since the change is binary-compatible.
Review by @JamesIry.