fixing reimage issue if no pwd configured

Change-Id: I94dd65a136a16b8836f24b703470d226c0f25cb0