Fix potential Null deref.

THis should fix coverity 989031