Hotfix for .then() of undefined
Two functions in the cookie handler had conditionals that would stop execution of the function early, but would not resolve a promise, leading functions that were counting on the .then() block trying to run undefined.