Add sanity cursor check while mapping source data