Fix bug in parsing embed expressions followed by a close tag