Fix issue 9622 - Range violation in rdmd

Thanks Puneet for http://forum.dlang.org/post/mailman.131.1362108865.14496.digitalmars-d@puremagic.com