NODE-210 connection is not checked for null before .isCompatible() is called