Fix issue when user.agent is not set in properties file.