Fixed detection of stateVar kind after item edit cancelation