Avoid console errors when focus is in iframe. Check for access to . Fixes #173.