Fix for NoneType can't be iterated when viewing home page.