Avoiding errors when no hone is on page 

or querySelector is not supported