Fixed an issue with createExtension when the extension had never been run via node.