Fix dereference before NULL test (CID 106)