A remark on the homotopy type of certain gauge groups