Anti crash. document.host only on client