coverity: fix a couple of forward nulls