An act done outside Queensland by a justice of the peace or a commissioner for declarations for the purpose of taking any affidavit or attesting any instrument or document intended to take effect in Queensland is as valid and effectual as if the act were done in Queensland unless the act is required by law to be done in Queensland.