See issues #625 and #627.
Two workarounds are possible to prevent the issue:
One way is to use the option negate_iife:false, the other is to prepend the IIFE with 0; combined with the option side_effects:false.
Neither of which is ideal for the overall compression.
In order to fix this bug, an IIFE should never be negated when it is the program completion value.