Fixed issues with console error if cookie was not set.