Hotfix/restful head identifier

Fixes an issue reported by andrer in zftalk.dev (IRC). Essentially, HEAD calls with an identifier were always resetting the identifier to null, which meant that `head()` was never being called with the identifier. This patch (a) fixes the test to properly show that the identifier should be passed, and (b) fixes the issue.