Fix incorrect call to fm_module_unregister_type() that lead to crash.