vm_state and task_state not updated during instance delete

Change-Id: I55d1c0bfebb636e5f0c5e641530589153edfefdd
Fixes: bug #1212496