Fix crash with empty transition list