Add delegate to get index of selected tag

1. fix crash when add an empty text
2. add delegate to get index of selected tag
I'm not sure we need the `else` statement here, maybe change it to:

    if ([[_addTagField text] length]) [_array addObject:[_addTagField text]]