add another check before 'DELETE /instances/i-xxxxx'.
Merge pull request #308 from axsh/fix-poweron-validation

add another check before 'DELETE /instances/i-xxxxx'.