fixed a segfault in 2d plugin scan

it occurred when chosing a different scan binning for the
plugin and prob scan

improved handling of warnings in the case of different binnings