Check the null value of UserAgent