Fix a few null checks in savedata.

Fixes #2456.
Merge pull request #2460 from Kingcom/master

Memory viewer redesign