Currently, the image statistics in the plugin are computed, also if there's nothing to compute (empty segmentation). Ensure that it wil be only computed if a segmentation is not empty. Check also with 4D images.
Added a fix where the segmentation mask is checked for non-zero entries prior to calculation. If the segmentation is empty, an error message will be displayed without starting the calculation.