Indeed, mea culpa. I tested this scenario (no saved profiles exist yet) earlier, but didn't think to repeat the tests after adding the built-in profiles. Consequently, currently it crashes at unload because no profiles exist at all even though the assumption is that there is always at least one profile.