[modulehandler] fix module type check

for trigger map construction