Fixed: Fix exception for createFuturePeriod Service (OFBIZ-12816)

Do not use `.hasNext()`, prefer to test with groovy truth the assignment of `.next()` value. If null, it ends the while loop.
1 file changed