Fix crash when menu-cache-gen ran manually without CACHE_GEN_VERSION.