fix #3716: NPE in getCachedMissingFromSearch