Fix issues with password bar details widget
There were two issues, happening when dismissing the password bar with the details widget visible:
- the next time the bar was shown, it had a button saying "Hide details" instead of "Show details"
- the next time the bar was shown, the details widget was empty