make creating SnapshotSpan from a range safe with debug diagnostics
Merge pull request #239 from vasily-kirichenko/span-from-pos-workaround

make creating SnapshotSpan from a range safe with debug diagnostics