fixing a crash if there are no visible messages in a chatscene