[BUGFIX] Fix JavaScript error that prevents links to anchor tags in RTE