Fix crash bug when stop code is sent without data.