Improve stability of _handleInvalidChunks. This corrects a reported bug found using Safari.
Rebuild