Fix a crasher trying to discover sentinels.