"Cannot Move" HP Retrieval

Potentially a bug, but I want to check I'm not doing something wrong. I habitually save Enemy 1 HP, Enemy 2 HP, etc, after each action, into a variable, directly from Game Data:

Enemy 1 Scored Damage = Max HP of #1
Enemy 1 Stored Damage -= HP of #1

This works fine, except I have one state, "Petrified". This state uses Restriction "Cannot Move", SV Motion Abnormal, SV Overlay Paralyze. Traits include various State Resists and Element Rate changes.

As soon as an enemy is affected by this state, the variable for calculating its HP begins returning a value of 0 instead of however much damage it has taken. Any idea why this might be? I assume it's to do with the Cannot Move restriction.

Original thread: https://forums.rpgmakerweb.com/threads/cannot-move-hp-retrieval.107696/