Attempt to fix crash when deleting StatBlock

Fixes #1176
Merge pull request #1178 from dorkster/testing

Attempt to fix crash when deleting StatBlock