settings_data: Handle potential null dereferences
Merge pull request #980 from lioncash/deref

settings_data: Handle potential null dereferences