Catch and fix problems with plugin loading caused by stale cache.