Add parent node null checks. Fixes #258, fixes #187

Also removed unnecessary hud_enabled booleans from persistence
Merge pull request #262 from jorgesilva/develop

Add parent node null checks. Fixes #258, fixes #187