corrected a bug where empty tagsinput append an empty text entry to tags