Bugfix assq_ref_cache for running without environment cache.