The first problem is reducible to the second one, by taking the intersection of the output gate and n.
The second problem is reducible to the first one, it suffices to multiply the output gate by 0, then 0 will be in the output gate if and only if the former output gate were not empty.