Fix insanely subtle but devestating bug

AdManager can only be created after all other static variables have
been declared and initialised otherwise the static variables will be
null.