Fix issue with bad sessions causing the site to crash :/

Yep, this is sadly a thing.