[FIX] web_tip: don't display tip on element whose width or height is 0

This commit allows a tip to be properly displayed on elements containing
an img tag. Previously the tip would be displayed before the image could
be loaded, thus breaking the ui.