Allow chunk to exit when the closure returns false

When looping through all of the different rows returned by an SQL statement using a chunk closure, you should be able to specify to Builder that you wish to no longer continue processing chunks by simply returning false inside the closure, without having to exit.
Use break to exit the loop, not continue.
Merge pull request #5110 from timgws/patch-3

Allow chunk to exit when the closure returns false