Fix segfault from when the EMI Demo tries to read from the registry.