Handle change password properly with multiple VM contexts (bug #1069)