RAZ-1747: Batching metadata for other file types then images did not work properly