Clear input field when unable to send message