Fixed issue with null values in visibility properties.