fix bug when send parameter null to native or cpp.