Fix CartBlockManager NPE.