Fix for GitHub issue 26 - compiler crash when module port has no internal net.

The compiler correctly reports an error when a module port has no
associated internal net/reg, but could crash when the module was
instantiated.