[connman-qt] Add out of array checks