IndexedDB: Ignore stale Success if handle was passed in UpgradeNeeded
To ack messages sent from the browser to a renderer thread after the
thread is terminated, the IPC message filter has a special "stale
message" handler that closes connections. r237142 changed OnSuccess
to only include a valid connection handle if it was not already
sent in OnUpgradeNeeded, but the stale handler would try and
close the invalid handle. This was caught by a CHECK on the browser
(to terminate a potentially rogue renderer).
The fix is to simply not try and close the invalid handle.
R=dgrogan@chromium.org
BUG=331586
Review URL: https://codereview.chromium.org/
134953004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246523 0039d316-1c4b-4281-b951-d872f2087c98