Fix typo in IEFE parameter
Throw an error if config is missing

Throws if wpApiConfig is undefined, or doesn't contain a "root" property