Switch to foreach loop. Move code into static constructor, no nullable bool. Done at startup time, then cached for further usage

git-svn-id: http://svn.code.sf.net/p/autowikibrowser/code/AWB@9037 5227b50d-9349-4574-b055-4b0a7525e11c