Update compile-dll.r

fix is.null