Fix savestates from before v0.9.6-536-g62e9e42.

Unfortunately, this breaks savestates made since then until this is
merged.  However, that's only a day or so.

Fixes #5183.
Merge pull request #5186 from unknownbrackets/savestates

Fix savestates from before v0.9.6-536-g62e9e42