bugfix: crash if repository path not exists (when metadata is not created)