Hendrik Leppkes:
	- nil check priority before using it
	- Fix layout export to properly handle multi-line strings
