Prevent nested <a> html tags when using nested img and url bb code tags. Manual merge from f20720d @jamrial