registry: don't fail if targetState is unavailable
Merge pull request #784 from jonboulle/fix

registry: don't fail if targetState is unavailable