Fix a null references issue that may crash wox.