title: react native terminating with uncaught exception of type NSException
body: <p>I have an error when running my app after I upgrade the ReactNative to 0.17 
  I was work fine with 0.13 </p>
  
  <p>Error code is</p>
  
  <pre><code>    2016-01-04 12:22:37.405 myapp [16916:350051] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSCFString substringFromIndex:]: Index 175 out of bounds; string length 174'
  *** First throw call stack:
  (
      0   CoreFoundation                      0x000000010ea9ce65 __exceptionPreprocess + 165
      1   libobjc.A.dylib                     0x000000010dca0deb objc_exception_throw + 48
      2   CoreFoundation                      0x000000010ea9cd9d +[NSException raise:format:] + 205
      3   Foundation                          0x000000010d84811d -[NSString substringFromIndex:] + 126
      4   myapp                            0x000000010d5e15f5 RCTBundlePathForURL + 293
      5   myapp                            0x000000010d5e167d RCTIsXCAssetURL + 45
      6   myapp                            0x000000010d6336d0 -[RCTXCAssetImageLoader canLoadImageURL:] + 48
      7   myapp                            0x000000010d62ac77 -[RCTImageLoader imageURLLoaderForURL:] + 615
      8   myapp                            0x000000010d62c070 __87-[RCTImageLoader loadImageWithTag:size:scale:resizeMode:progressBlock:completionBlock:]_block_invoke_2125 + 368
      9   libdispatch.dylib                   0x000000011201fe5d _dispatch_call_block_and_release + 12
      10  libdispatch.dylib                   0x000000011204049b _dispatch_client_callout + 8
      11  libdispatch.dylib                   0x00000001120268ec _dispatch_queue_drain + 2215
      12  libdispatch.dylib                   0x0000000112025e0d _dispatch_queue_invoke + 601
      13  libdispatch.dylib                   0x0000000112028a56 _dispatch_root_queue_drain + 1420
      14  libdispatch.dylib                   0x00000001120284c5 _dispatch_worker_thread3 + 111
      15  libsystem_pthread.dylib             0x000000011237868f _pthread_wqthread + 1129
      16  libsystem_pthread.dylib             0x0000000112376365 start_wqthread + 13
  )
  libc++abi.dylib: terminating with uncaught exception of type NSException
  </code></pre>
  
  <p>original code here
  <a href="https://gist.github.com/AhmedMAtia/141208f80e28a4343e26" rel="nofollow">https://gist.github.com/AhmedMAtia/141208f80e28a4343e26</a></p>