invalidate calls on conditionals in js optimizer, to avoid eliminating into a non-executing code path