Check if text is not empty before sending.