Fix reloading from error in shell/detached apps
Fix reloading from error in shell/detached apps

fbshipit-source-id: 524b35d

exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent