Add fix for safari getCookie

Add fix for safari getCookie