Don't assume config is an object

Since cookie-getter can return a string