StateVector: handle empty bitmask better