[api] do not crash when trying to copy entire projects from remote. Report an error instead.