(bug 31895) Fix bug in mediawiki.js with early domready handlers.
Previously it used a local `ready` variable set to false, that is
set to true from a $.fn.ready callback. Sounds good, except that
we're not the only one in that callback list. And, more
importantly, not always the first one.
Thus if an earlier domready callback calls mw.loader, the value is
still false, and the wrong load method could be used (bug 31895).
Fixing by using $.isReady directly, which is set to true right
before the domready callback list is fired.
This is bug is impossible to hit within a MediaWiki environment
since mediawiki.js is the first script loaded from the startup
module and is blocking as well.
But browser-userscripts, greasemonkey and/or browse extensions can
sometimes get in an odd position in between or before.
Change-Id: I146c1d2245aae71c538ce84daee30b4ec490b874