Fix instance evacuate with shared storage

Fixes instance evacuation problem when --on-shared-storage flag
specified. The problem occurs as the password variable ends up being
accessed before it is assigned. Also adds missing test case.

Fixes bug 1152492

Change-Id: I461c0f7fcf8835028f7529a7860fb330d1759d68
Merge "Fix instance evacuate with shared storage"