Fix the case when an user agent is empty during tests