bug fixing on home page

fixing a bug regarding the issue when user delete its account, and that
account has made comments before, a ror error occurs (NPE)