Fix the crash when subscription cache is empty