ResourceLoaderWikiModule: Only check content format instead of namespace

Follows up I64e86c741.

Bug: 70835
Change-Id: Ieb9e5d045ed9b59cc83749234a9157689244c597