DEVELOPER-915 Only write Nokogiri output if changes were made