Fixed errors with a null grid item.