added check on null histos in fit