Fix for https://github.com/ansible/ansible/issues/7330

i['State']['Ghost'] no longer seems to be defined with newer versions of docker-py. Added logic to handle this.