Change bodyVisible to check the body element exists first

Change bodyVisible to check the body element actually exists before accessing offsetWidth.

This prevents errors if FC is used before the DOM has loaded (ie. on an invisible element).