Properly return error when invalid instance state is found
Merge pull request #1018 from priteau/openstack-state-fix

Properly return error when invalid instance state is found