Fix #50: Check TANGO::State before state transition