It appears that an early return is missing. Or rather, it exists, but is guarded by PLATFORM(IOS) for no apparent reason.
Created attachment 226540 [details] the patch
Committed r165496: <http://trac.webkit.org/changeset/165496>