Check if stdout or stderr is null in ExternalMetadataExtractor