Modifying error handling for resourceId
Merge pull request #25 from go-lab/iss24/resourceId_error_handling

Modifying error handling for resourceId. Closes #24