[mms] Fix hiding preferences if they are contained within a prefs container.