If setting a cookie fails try to set it again in before_beacon