This issue is not concerned with saving passwords. At no point in the steps to reproduce is the password saved, nor is the option to save passwords changed from default values. This issue did not occur in 0.9.5, and can be reproduced after deleting %appdata%\.minecraft entirely.
Duplicated on fresh Ubuntu 13.4 installation.