Fixed potential null dereference

Fixes CID 70466