Reorder getNextPartition code
Reorder getNextPartition code

    * If there were no data to copy, then it has no sense to calculate the
      offsets, therefore move the code to the place where it is required.

bsc-dd/hecuba,bsc-dd/hecuba,bsc-dd/hecuba,bsc-dd/hecuba