Fix #372. Now checks MakeWireGate returns valid ent.