Avoid firing delete message when the text field is blank.