Revert "AddResource returns an error on invalid in"

This reverts commit 458a9ad34b3da5d3db025101caa3a6efeabb91d5.