Fixed bug#9409 - If HTTP_USER_AGENT isn't set, error on Layout.pm.