docs(ngResource): Fix error in one of the code examples

Closes #8948
I'm not sure if this change is really correct, needs some investigation.