Handle null file in SerializerUtil