Don't log TypeError while redirecting

"NoneType is not iterable" if self.posts is None