Fixed crashing bug in nebmodule_deinit()

This change fixes a Nagios crash at module de-initialization if no local
hostgroups/servicegroups were defined, dereferencing a null pointer.