Fix for handling node counts that are 1 but the requested ntasks-per-node
is larger than the number of tasks spread across the node.