Adding test of 'time' field for Item 

Many posts are deleted, which will cause error access of the 'time' field of an item. Adding testing of 'time' field before accessing.