Fix for Firefox: verify that getComputedStyle is not returning null before using its result (it returns null if it's called inside a hidden iframe).