AP_Menu: fixed crash bug in strtok_r() handling

on PX4 this causes a hard fault in CLI menus