Update connection.js

if "options" has null value, does not effect default value.
in my case, port setted as null, it didn't work.

I wasted so much time..