Merge "Factory reset: don't crash if IMS feature is absent" into main