Fixed register server task when cookie is not defined, regexp is now in global/globals.js