[IOTDB-4173] Fix NPE in SourceHandle (#7047)