EDT-655 Cannot edit page with open Javascript comment in title

https://youtrack.mindtouch.us/issue/EDT-655