Fix isVisible to account for non-present element
Merge pull request #169 from joshtombs/jt/fix-visible

Fix isVisible to account for non-present element