[connman-qt] Add null pointer protection