Fixing divide by zero error when parallelism hint is unspecified.

In the process of writing the unit test, we discovered another bug
with regard to specifying an desired executor count of 1 with more
than one region.