Fixed check on nullptr
gcc11 reported that the pointer "var" was dereferenced after making sure it was null.
To be fair the warning was a bit obscure:
../../../PhysFit/B2DXFitters/src/RooBinnedPdf.cxx: In member function 'Int_t RooBinnedPdf::createBaseCats(const RooArgList&, const TObjArray&)':
../../../PhysFit/B2DXFitters/src/RooBinnedPdf.cxx:970:14: warning: 'this' pointer is null [-Wnonnull]
970 | << "' is not a RooAbsRealLValue" << endl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
but a quick code inspection was enough to spot the problem.