There is no longer a need for document.getElementsByTagName("head") to get the head element, due to document.head being added in bug 30232.
Created attachment 43453 [details] [PATCH] Use Direct Access
Landed in http://trac.webkit.org/changeset/51134 r51134 = e140ac8a0460c6235fe692fff23faad8e148ac2a