Validating if connection spec is nil.