Setting empty password causes exception... #93

This is #93 rebased on top of the latest master.