Check wgRelevantArticleId to determine relevant page existence even on special pages

Added to core in I06cd0378

Bug: 66885
Change-Id: I9ce889be0ae1cbaab13a9f408d07b168da8affdd
Merge "Check wgRelevantArticleId to determine relevant page existence even on special pages"