Setting a comment via the UI (metadata pane or button) in .jpg files confuses the file's metadata object. The type switches to other and many properties will be returned as undefined. The metadata pane will still display all fields correctly. A refresh seems to help. Opus 12.23 didn't act like this.
Well, I actually didn't find a jpeg, with which I couldn't reproduce that effect. Same behaviour on my second PC. I need, however, to take back my statement about 12.23: no difference to 12.24.
Thanks! I think I've worked out what's going on, and it probably also explains why you weren't seeing it before but are now, as well as why I didn't see it until now.
It depends on which columns the lister is displaying. If the comment is added/edited and no columns are turned on that cause the other metadata to be re-fetched, then the other metadata aren't cached when the script asks for the file's data. Since the comment metadata is cached, we're incorrectly assuming that's all there is and returning it on its own when the script asks, rather than causing the rest of the metadata to be calculated at that point.