Fixed illegal division of zero when there is no swap partition.