webos: handle not existing fields of connection manager service response

Executing a application with cordova in Open webOS gives the following log ouput where the
errors are caused by the missing fields.

Jan 31 12:03:54 tuna user.notice WebAppMgr: {LunaSysMgrJS}: com.palm.app.phone: webos
Plugin: NetworkStatus - getConnectionInfo,
file:///usr/palm/applications/com.palm.app.phone/cordova.js:5818
Jan 31 12:03:54 tuna user.notice WebAppMgr: {LunaSysMgrJS}: com.palm.app.phone:
result:{"returnValue":true,"isInternetConnectionAvailable":false,"wired":{"state":"disconnected"},"wifi":{"state":"disconnected"}},
file:///usr/palm/applications/com.palm.app.phone/cordova
Jan 31 12:03:54 tuna user.notice WebAppMgr: {LunaSysMgrJS}: com.palm.app.phone: Error
initializing Network Connection: TypeError: 'undefined' is not an object,
file:///usr/palm/applications/com.palm.app.phone/cordova.js:5227
Jan 31 12:03:54 tuna user.notice WebAppMgr: {LunaSysMgrJS}: com.palm.app.phone: TypeError:
'undefined' is not an object, undefined:0