Handle null values for primitive (int, boolean) properties