Eh, it's fine. This way KoL can fix the preference in case the player advances the pyramid outside of mafia. That's a good thing.
That happens when you look at the pyramid no matter what. If you make progress outside of mafia and then log in with mafia (for the first time since ascending), mafia will set it to the default value, which probably isn't the current value, so it's completely irrelevant here. Now there are two different places where that gets done: one as soon as you ascend (or as soon as you use mafia after ascending), and again when you start doing stuff in the pyramid, which is pointless.
In this case, there was a narrow window between opening the pyramid and actually looking inside of it when I was having a problem because the preference wasn't reset.
I agree with resetting it when you ascend. I was just trying to get an idea of what to do about old code that should probably be deleted. Or maybe resetting those can be left to the function in PyramidRequest and that function called from ValhallaManager, and all the times where it's called in PyramidRequest could be removed.
Edit: Not that it should have been necessary, but checking lastPyramidReset would have worked for you.