fix(analytics) more descriptive error logs
fix(analytics) more descriptive error logs

Also handle an edgecase where `res` was being accessed while it was nil.

ChristopherBiscardi/kong,sbuettner/kong,skynet/kong,Skyscanner/kong,peterayeni/kong,AnsonSmith/kong