[Resources] Fix issue installing to target without resources

Fixes #2083