Avoid "Cannot read property 'getAttribute' of undefined" errors when element doesn't exists anymore.
Merge pull request #9 from AlexBeauchemin/master

Avoid "Cannot read property 'getAttribute' of undefined" errors