"That the privilege of the writ of habeas corpus shall not be suspended, unless when in cases of rebellion, insurrection or invasion the public safety may require it, in either of which events the same may be suspended by the President, or by the governor, with the approval of the Philippine Commission, whenever during such period the necessity for such suspension shall exist."