Fixing bug: null pointer when accessing cookieMgr on root and not config object