GRIM: Stop a segfault when saving.
Merge pull request #1000 from JoseJX/FixGRIMSave

GRIM: Stop a segfault when saving.