Don't crash if body tag is missing and adding src

A page with no body tag was crashing jsdom if a src was used.
I added what's needed to handle the error like the other errors.