If there are no objections, I'd merge this PR in about a week.
I believe the very special case where this patch doesn't save the empty session (which only happens with non-default Various preferences) outweighs the current situation where the default session is lost after 2 project opens.