vm_state and task_state not updated during instance delete

Fixes: bug #1212496

Change-Id: If80030644f0084ae863b3b4199460dc7c5137da8