Check that logic gates are not given null ports.
Check that logic gates are not given null ports.

Logic gates do not handle null ports so check for this and
issue an error message when it happens.

CastMi/iverilog,themperek/iverilog,themperek/iverilog,CastMi/iverilog,themperek/iverilog,CastMi/iverilog