registry: don't fail if targetState is unavailable

Regression introduced in #780