Fix bug with inserting scripts when document.body is not ready.
Fix bug with inserting scripts when document.body is not ready.

When doing open in seperate tab in firefox the document.body element
takes a while to add.  Our scripts are racing it's precense and exposing
the buf fixed by this commit.

mayfield/strava-sauce,mayfield/strava-sauce