Added a null check in the textualiser.