Fix infinite loop in put/delete/patchPath: