flush error messages when date range is removed from dom