Set width/height to 0 if clientWidth/clientHeight is undefined

ex) inside iframe