Add bailout when handleObj.data is undefined

Provides compatibility with Twitter Bootstrap dropdown menu
plugin.