Fix for findFirstMatch breaking after setting an expired cookie.