Handle null string remote host.

The format returned by `cylc get-config` means that null strings may not
be handled correctly. This change should improve it some what. See also cylc/cylc#356.