Another fix if the getStyle(style) returns null

If `getStyle(...)` returns `null` then `getStyle('padding-top').toInt()` generates an error: `TypeError: getStyle(...) is null` (Firefox).
For this case I wrap the casting into try-catch block and set the style value to `0`.

This error I received from default `padding-top` style in Firefox 27.0.1