Add parsing error for no closing mustache (was throwing js error)

Was getting error on bad closing mustache. Guarded against !token and added message.

Message could be a little better and point to end of reference, but that would mean fiddling with getMustacheContent to return position instead of reseting, and I'm not up for yak shaving today.