Issue 8041 - __gshared without initializer fails compilation

http://d.puremagic.com/issues/show_bug.cgi?id=8041

Although it fixes the issue I'm not sure why those checks are in the if statement, it could use a documentation comment.