[mms] Fix regression in deactivating scripts (Bug #13297).