Return 404 if patched resource doesn't exists

If the resource doesn't exists any resource API call must
return 404.

Change-Id: I76d1b8dc9ac7cbd0b8e7788e5b299af2dffbd30b