Fix some case of anyOverlap when used with the document element.  Make the console.warn capture more resilient