fix crash when DQMStore is null
Merge pull request #2930 from deguio/fixCastor

DQM -- Fix crash in Castor