Fix crash on start from 11.2

roboport and robot graphic code changes cause crash in 11.2.