check the resampling matrix only for WB analysis
The goal of this MR is to fix a bug where the resampling matrix would be checked even when no WB analysis would be performed, throwing an error.
The goal of this MR is to fix a bug where the resampling matrix would be checked even when no WB analysis would be performed, throwing an error.