Fix crash on Connector.js
Do not access a property in a null-checked object