Add asserts to avoid null pointer derefeences
Merge pull request #2284 from wmtan/AddAssertsToMaybeAvoidSegfaults

Framework cleanup -- Add asserts to avoid null pointer dereferences
Merge remote branch 'origin/CMSSW_7_1_X' into CMSSW_7_0_X