Actually fixed getCookie bug when there is no cookie.