Check for nil values when calculating hard drive capacity and percentage used on main/index