Checking for nullptr in get_model_bytecode_version (#97149)
One-liner commit to check that the ptr is not null. Just had `test_jit` that had a segfault there.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97149
Approved by: https://github.com/kit1980