Make sure that the body element exists before doing the body selector optimization...