Fix potential crash when trying to add a hallucination