Improve vowel checking in is_valid_vietnamese()

If the last consonant exists then the vowel must be a closed vowel
else it can be any of the stripped vowels.