Removes the text layer (if exists) of the object (in memory)

def remove_text_layer(self):
        """
        Removes the text layer (if exists) of the object (in memory)
        """
        if self.text_layer is not None:
            this_node = self.text_layer.get_node()
            self.root.remove(this_node)
            self.text_layer = None

        if self.header is not None:
            self.header.remove_lp('text')