Fix crash on start from happen in 11.2

roboport and robot graphic code changes cause crash in 11.2.