This fixes a bug when a `target` directive has both an `if` and a `nowait` clauses. The bug happens because we tried to `emitKernelLaunch` for `else` branch of the `if` clause.
This fixes a bug when a `target` directive has both an `if` and a `nowait` clauses. The bug happens because we tried to `emitKernelLaunch` for `else` branch of the `if` clause.