Change to `platform` `userAgent`.
Check the null value of UserAgent