Be more defensive when looking for handlers.

`jQuery._data()` cannot handle when the element does not exist