Fixed error if webview width or height is 0.