Fixed a bug with the JavaScript representation of empty regexps