Fix PHP notice about missing user agent