get_cookie returns None when not under http context