Fix :exc:`KeyError` raised in :func:`typing.get_type_hints` due to
synthetic modules that don't appear in ``sys.modules``.