Ensure partition block size is not 0.

* "block_size" is a uint32, no need to check for <= 0
* Short-circuit evaluation means we don't have to worry about this becoming another KDL if "partition" is NULL
* Should fix #10717 and #9489