add null check for text in TextLayoutBackend

The text should never be null in a layout, because the toolkits require a string value, when drawing. Otherwise WPF and MAC throw a NullReferenceException and Gtk prints a warning to the console (Pango-CRITICAL).