The costs relating to unnecessary acts shall be borne by the judicial officers who performed them, without prejudice to any damages that may be claimed. The same applies to costs relating to documents that are null and void as a result of their fault.