fix findCookieSession throw null pointer exception bug