Fix session data access when calling from command line (Bug #11573)
[mms] Fix removing preference from backend (Bug #12207).