Added code to catch the absense of the cookiedomain value