Added code to clear null ref in virtual items config.