Odbc: Fixed potential NULL dereference.