XWIKI-11105: Links to inexistent pages not marked anymore

(cherry picked from commit 1d7f66eb903e0d5866176f4fffd14611ccf91840)
[misc] Formatting

(cherry picked from commit fc10b3c0e41eaa60d7033079218d39f7750d1890)