Potential robots settings page segfault fix

Fixed potential segfault when storing selected robot model in settings page