fixed a bug in tagSentenceWithMT() for handling null