Don't use __eq__, the one implemented for Selenium WebElement doesn't handle being called with None.