Automatically disable reports generation when FileDataWriter is not enabled, close #2408