Add check after resolving Mod_Init in testing modules, to avoid null call in specially crafted modules.  CID#1107997 #37