Fix isVisible to correctly handle some errors.

 * Treat NoSuchElement as "invisible".
 * Treat StaleElementReference as "invisible".

These errors can be raised when using waitForVisible/waitForInvisible to query for elements that are added to/removed from the DOM (rather than simply being hidden/shown). This patch allows this usage, which would previously just throw errors.

This might also fix #223.