Don't serialize invalid ranges in diagnostics.
Don't serialize invalid ranges in diagnostics.

No tests because I'm not sure when this ever happens, but it's a good
defensive commit anyway.

<rdar://problem/16414465>

Swift SVN r16841

kentya6/swift,airspeedswift/swift,allevato/swift,brentdax/swift,slavapestov/swift,swiftix/swift.old,ben-ng/swift,huonw/swift,modocache/swift,shajrawi/swift,kentya6/swift,karwa/swift,tinysun212/swift-windows,Jnosh/swift,adrfer/swift,kstaring/swift,adrfer/swift,danielmartin/swift,danielmartin/swift,xwu/swift,uasys/swift,ben-ng/swift,johnno1962d/swift,SwiftAndroid/swift,tjw/swift,LeoShimonaka/swift,milseman/swift,atrick/swift,Jnosh/swift,shajrawi/swift,devincoughlin/swift,amraboelela/swift,uasys/swift,russbishop/swift,KrishMunot/swift,MukeshKumarS/Swift,amraboelela/swift,uasys/swift,dduan/swift,gregomni/swift,allevato/swift,swiftix/swift,kperryua/swift,gregomni/swift,tkremenek/swift,danielmartin/swift,KrishMunot/swift,adrfer/swift,codestergit/swift,kentya6/swift,swiftix/swift,MukeshKumarS/Swift,milseman/swift,ben-ng/swift,gregomni/swift,tardieu/swift,jtbandes/swift,xwu/swift,practicalswift/swift,JaSpa/swift,return/swift,jckarter/swift,benlangmuir/swift,airspeedswift/swift,calebd/swift,hughbe/swift,benlangmuir/swift,aschwaighofer/swift,swiftix/swift.old,stephentyrone/swift,LeoShimonaka/swift,tkremenek/swift,alblue/swift,IngmarStein/swift,bitjammer/swift,Jnosh/swift,djwbrown/swift,cbrentharris/swift,sdulal/swift,dreamsxin/swift,emilstahl/swift,slavapestov/swift,huonw/swift,frootloops/swift,kstaring/swift,harlanhaskins/swift,parkera/swift,nathawes/swift,tkremenek/swift,lorentey/swift,emilstahl/swift,codestergit/swift,swiftix/swift,SwiftAndroid/swift,brentdax/swift,adrfer/swift,calebd/swift,mightydeveloper/swift,glessard/swift,modocache/swift,austinzheng/swift,rudkx/swift,kusl/swift,tardieu/swift,aschwaighofer/swift,zisko/swift,milseman/swift,KrishMunot/swift,arvedviehweger/swift,OscarSwanros/swift,ken0nek/swift,tinysun212/swift-windows,OscarSwanros/swift,rudkx/swift,milseman/swift,tardieu/swift,johnno1962d/swift,amraboelela/swift,khizkhiz/swift,Ivacker/swift,KrishMunot/swift,gribozavr/swift,alblue/swift,devincoughlin/swift,parkera/swift,tjw/swift,johnno1962d/swift,tinysun212/swift-windows,karwa/swift,slavapestov/swift,ben-ng/swift,aschwaighofer/swift,jckarter/swift,therealbnut/swift,practicalswift/swift,airspeedswift/swift,tjw/swift,CodaFi/swift,uasys/swift,jopamer/swift,allevato/swift,atrick/swift,MukeshKumarS/Swift,stephentyrone/swift,gottesmm/swift,xedin/swift,ahoppen/swift,IngmarStein/swift,jmgc/swift,ahoppen/swift,gottesmm/swift,LeoShimonaka/swift,stephentyrone/swift,manavgabhawala/swift,jckarter/swift,CodaFi/swift,zisko/swift,arvedviehweger/swift,roambotics/swift,xedin/swift,tinysun212/swift-windows,arvedviehweger/swift,adrfer/swift,roambotics/swift,huonw/swift,huonw/swift,ahoppen/swift,felix91gr/swift,djwbrown/swift,xwu/swift,ken0nek/swift,JaSpa/swift,hooman/swift,harlanhaskins/swift,natecook1000/swift,hooman/swift,sschiau/swift,bitjammer/swift,devincoughlin/swift,sdulal/swift,practicalswift/swift,milseman/swift,gmilos/swift,parkera/swift,codestergit/swift,ben-ng/swift,kusl/swift,ben-ng/swift,felix91gr/swift,shajrawi/swift,huonw/swift,shajrawi/swift,kentya6/swift,gmilos/swift,modocache/swift,shahmishal/swift,kstaring/swift,jopamer/swift,xedin/swift,frootloops/swift,sschiau/swift,gottesmm/swift,JaSpa/swift,johnno1962d/swift,benlangmuir/swift,deyton/swift,johnno1962d/swift,deyton/swift,xwu/swift,ahoppen/swift,djwbrown/swift,manavgabhawala/swift,SwiftAndroid/swift,kperryua/swift,cbrentharris/swift,parkera/swift,glessard/swift,JaSpa/swift,MukeshKumarS/Swift,russbishop/swift,tkremenek/swift,nathawes/swift,xedin/swift,Jnosh/swift,manavgabhawala/swift,return/swift,khizkhiz/swift,gribozavr/swift,return/swift,parkera/swift,kentya6/swift,aschwaighofer/swift,kperryua/swift,harlanhaskins/swift,austinzheng/swift,Jnosh/swift,kusl/swift,kstaring/swift,gottesmm/swift,sdulal/swift,gmilos/swift,SwiftAndroid/swift,therealbnut/swift,austinzheng/swift,arvedviehweger/swift,kperryua/swift,therealbnut/swift,OscarSwanros/swift,rudkx/swift,danielmartin/swift,JGiola/swift,dduan/swift,frootloops/swift,khizkhiz/swift,manavgabhawala/swift,hughbe/swift,manavgabhawala/swift,tjw/swift,deyton/swift,lorentey/swift,tkremenek/swift,MukeshKumarS/Swift,IngmarStein/swift,jopamer/swift,jckarter/swift,shajrawi/swift,russbishop/swift,hooman/swift,hughbe/swift,karwa/swift,emilstahl/swift,Jnosh/swift,cbrentharris/swift,arvedviehweger/swift,MukeshKumarS/Swift,sschiau/swift,Ivacker/swift,tardieu/swift,cbrentharris/swift,tardieu/swift,JGiola/swift,benlangmuir/swift,IngmarStein/swift,jtbandes/swift,natecook1000/swift,stephentyrone/swift,mightydeveloper/swift,shajrawi/swift,practicalswift/swift,KrishMunot/swift,kusl/swift,benlangmuir/swift,glessard/swift,parkera/swift,atrick/swift,sdulal/swift,airspeedswift/swift,jtbandes/swift,emilstahl/swift,kstaring/swift,devincoughlin/swift,jtbandes/swift,Jnosh/swift,tardieu/swift,codestergit/swift,shahmishal/swift,calebd/swift,roambotics/swift,KrishMunot/swift,bitjammer/swift,frootloops/swift,therealbnut/swift,lorentey/swift,gribozavr/swift,mightydeveloper/swift,sschiau/swift,tjw/swift,bitjammer/swift,stephentyrone/swift,CodaFi/swift,ahoppen/swift,aschwaighofer/swift,allevato/swift,CodaFi/swift,calebd/swift,austinzheng/swift,ahoppen/swift,jopamer/swift,JGiola/swift,kusl/swift,natecook1000/swift,ken0nek/swift,KrishMunot/swift,austinzheng/swift,modocache/swift,xwu/swift,parkera/swift,devincoughlin/swift,dduan/swift,deyton/swift,uasys/swift,johnno1962d/swift,gottesmm/swift,amraboelela/swift,devincoughlin/swift,practicalswift/swift,jckarter/swift,mightydeveloper/swift,tardieu/swift,cbrentharris/swift,sschiau/swift,adrfer/swift,swiftix/swift,harlanhaskins/swift,return/swift,cbrentharris/swift,OscarSwanros/swift,uasys/swift,jopamer/swift,karwa/swift,karwa/swift,swiftix/swift,IngmarStein/swift,slavapestov/swift,bitjammer/swift,allevato/swift,tinysun212/swift-windows,khizkhiz/swift,kperryua/swift,kperryua/swift,felix91gr/swift,dduan/swift,djwbrown/swift,CodaFi/swift,xwu/swift,gribozavr/swift,amraboelela/swift,xwu/swift,brentdax/swift,sschiau/swift,gribozavr/swift,gribozavr/swift,modocache/swift,kstaring/swift,johnno1962d/swift,cbrentharris/swift,brentdax/swift,karwa/swift,apple/swift,danielmartin/swift,brentdax/swift,jmgc/swift,return/swift,swiftix/swift.old,airspeedswift/swift,shahmishal/swift,gribozavr/swift,felix91gr/swift,codestergit/swift,sdulal/swift,calebd/swift,deyton/swift,OscarSwanros/swift,JaSpa/swift,therealbnut/swift,harlanhaskins/swift,hughbe/swift,hooman/swift,atrick/swift,frootloops/swift,xedin/swift,airspeedswift/swift,nathawes/swift,jmgc/swift,LeoShimonaka/swift,jmgc/swift,ken0nek/swift,xedin/swift,amraboelela/swift,gottesmm/swift,shahmishal/swift,JGiola/swift,practicalswift/swift,jopamer/swift,amraboelela/swift,lorentey/swift,xedin/swift,kentya6/swift,deyton/swift,alblue/swift,russbishop/swift,brentdax/swift,bitjammer/swift,JaSpa/swift,alblue/swift,cbrentharris/swift,emilstahl/swift,sdulal/swift,shahmishal/swift,shahmishal/swift,arvedviehweger/swift,ken0nek/swift,adrfer/swift,shahmishal/swift,harlanhaskins/swift,parkera/swift,jtbandes/swift,CodaFi/swift,russbishop/swift,jckarter/swift,dreamsxin/swift,lorentey/swift,zisko/swift,felix91gr/swift,tkremenek/swift,gmilos/swift,gmilos/swift,austinzheng/swift,gregomni/swift,CodaFi/swift,practicalswift/swift,harlanhaskins/swift,tinysun212/swift-windows,glessard/swift,zisko/swift,kentya6/swift,manavgabhawala/swift,nathawes/swift,devincoughlin/swift,ben-ng/swift,apple/swift,OscarSwanros/swift,sdulal/swift,LeoShimonaka/swift,jtbandes/swift,austinzheng/swift,alblue/swift,mightydeveloper/swift,russbishop/swift,manavgabhawala/swift,hooman/swift,frootloops/swift,apple/swift,jopamer/swift,slavapestov/swift,apple/swift,IngmarStein/swift,codestergit/swift,tinysun212/swift-windows,dduan/swift,LeoShimonaka/swift,calebd/swift,natecook1000/swift,danielmartin/swift,jmgc/swift,gregomni/swift,roambotics/swift,Ivacker/swift,djwbrown/swift,zisko/swift,roambotics/swift,khizkhiz/swift,rudkx/swift,alblue/swift,lorentey/swift,gmilos/swift,frootloops/swift,roambotics/swift,kentya6/swift,apple/swift,khizkhiz/swift,zisko/swift,mightydeveloper/swift,IngmarStein/swift,karwa/swift,allevato/swift,Ivacker/swift,glessard/swift,atrick/swift,gribozavr/swift,tkremenek/swift,swiftix/swift,aschwaighofer/swift,russbishop/swift,dduan/swift,JGiola/swift,tjw/swift,glessard/swift,mightydeveloper/swift,milseman/swift,JaSpa/swift,hooman/swift,huonw/swift,Ivacker/swift,shajrawi/swift,kperryua/swift,therealbnut/swift,huonw/swift,SwiftAndroid/swift,gregomni/swift,tjw/swift,kusl/swift,swiftix/swift,rudkx/swift,practicalswift/swift,return/swift,jtbandes/swift,stephentyrone/swift,nathawes/swift,therealbnut/swift,gmilos/swift,calebd/swift,nathawes/swift,brentdax/swift,airspeedswift/swift,djwbrown/swift,modocache/swift,natecook1000/swift,natecook1000/swift,swiftix/swift.old,sschiau/swift,jmgc/swift,kusl/swift,aschwaighofer/swift,emilstahl/swift,felix91gr/swift,karwa/swift,atrick/swift,mightydeveloper/swift,ken0nek/swift,deyton/swift,sdulal/swift,slavapestov/swift,devincoughlin/swift,arvedviehweger/swift,stephentyrone/swift,modocache/swift,lorentey/swift,apple/swift,LeoShimonaka/swift,natecook1000/swift,swiftix/swift.old,zisko/swift,shajrawi/swift,swiftix/swift.old,allevato/swift,rudkx/swift,Ivacker/swift,hughbe/swift,OscarSwanros/swift,felix91gr/swift,JGiola/swift,swiftix/swift.old,gottesmm/swift,hooman/swift,MukeshKumarS/Swift,jmgc/swift,lorentey/swift,swiftix/swift.old,dduan/swift,djwbrown/swift,xedin/swift,LeoShimonaka/swift,nathawes/swift,shahmishal/swift,kusl/swift,ken0nek/swift,hughbe/swift,hughbe/swift,danielmartin/swift,milseman/swift,SwiftAndroid/swift,alblue/swift,emilstahl/swift,bitjammer/swift,Ivacker/swift,slavapestov/swift,Ivacker/swift,uasys/swift,kstaring/swift,sschiau/swift,return/swift,jckarter/swift,benlangmuir/swift,codestergit/swift,khizkhiz/swift,SwiftAndroid/swift,emilstahl/swift