Fix 'undefined' User-Agent in logs.