The official acts of an officer shall be valid regardless of his omission to take and file the oath, except in cases where so specially declared.