fix broken logic updating on question rename

due to missed MT -> mug rename while refactoring

Also change MT -> mug in the parameter names in another function.
Merge pull request #125 from dimagi/fix-logic-updating

fix broken logic updating on question rename