Fix to Coverity issue 72738, passed NULL-pointer to a function which referenced it.