(change:minor) Improved check for negative shares: apply control only if all shares are non-negative