Backout 85d108f0b422 (bug 874369) for causing b2g reftest failures.
Bug 861595 - Don't try to decode anything if we don't have any bytes to decode. r=seth