Add missing null check to layout test compareValues
Only check margin values explicitly set during layout test

Firefox doesn't populate unset values in the computed styles, resulting
in this test failing.