[FIX] missed case where sys.modules values can be None