Fixed #641. Whenever a userscript is executed from Scriptish from the start of the document, the document is available, but document.body, document.head and document.documentElement are not available. To fix this a setTimeout(func, 0) is used to try calling the inject function again immediately after every other stacked calls.