Ensure defaults is always an object, prevents exception breaking the extension