Fix/accumulator null check

This fixes a coverity check ** CID 68040.