Add error when not find path of registry (collect). closes #2702