[connection-sharing] Avoid crash when no secondary dns is given in connman

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>