check event definition in showWidget

Hi,

I'm wanted to add a button to show the time picker but i faced a little bug in the time picker. There is an e.stopPropagation but no event if I call showWidget from by button so I just added a nullity test.

Swiip