fix #1278 onclick broken if Icon has no tooltip

When Icon widget had no tooltip, but `onclick` defined, the method
was never invoked.

The commit only removes the conditional statement around delegate
definition (ugly diff due to whitespace change)

close #1279
close #1366