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

ex) inside iframe
Merge pull request #37 from haman29/inside_iframe

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