ShadowMenu: avoid NPE when child module is null

See: http://fiji.sc/bugzilla/show_bug.cgi?id=944

Of course, it is quite odd for the child module to be null. It may be a
symptom of a larger issue. But it's still better not to throw NPE here.