Fixed anchor is null issue pointed out by @darkwing
Merge pull request #2394 from riverspirit/promote-mdn-fix-1

Fixed anchor is null issue pointed out by @darkwing