Fix error on Completer.DEFAULTS when script is included before document is loaded.