[runtime] Fix a jit assertion on a class which contains an empty struct as a static field. Fixes #20349.