check for error
handle nil/empty message text properly