Fixed possible bad mode instantation when restarting module
Merge pull request #1484 from Zentyal/jag/users3.2-ro

Fixed possible bad mode instantation when restarting module