Issue #2346709 by ChristianEsbensen, scotttimmins: Variable delete accidentally called by Variable module via hook