Translate operator !! into ensureNullSafe() call in js backend

Previous code generated a temporary variable and used an inline ternary operator.