improved loaded element check

According to jQuery, Opera v12.12 and older may sometimes report offsetWidth and/or offsetHeight less than zero on some elements. Therefore, the check if an element is loaded should not simply evaluate for 0/false, since negative numbers will incorrectly evaluate as true.