Guard cookie logic better

This ensures the cookie exists on disk before attempting to read it. If the
cookie string is nil, we definitely want to render the cookie no matter what,
so the other condition is one of either the cookie not existing, or the cookies
not being equal.