logs: fix error with empty textarea