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.
Fixed bug with more than one region and a desired executor count of 1.

Also, enforced that executor count is non-negative.