How can you restore a password in MultiBit if you are given the wallet words BEFORE you even enter a password?
There is a copy of the password stored encrypted with an AES key derived from the wallet words.

Thus if you forget your password and still have a copy of your wallet you can use your wallet words to recover your password.