[Settings] Clean up things found by Cppcheck

Nothing severe found, besides the possible null pointer.