Throw exception if configureExtensions is null