cache: fix crash due to a recent change in the context reloading. closes #990