Added a null check to prevent the viz from crashing if a thought wasn't given a pattern