Reset to text mode after mustache close
Fix scanner blowing up on empty text before eos