Fix code to handle crashes for non-VP8.

Unit tests will be submitted Monday, submitting this part to get the
Android bots green.

BUG=1667, 1788
R=glaznev@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/44789004

Cr-Original-Commit-Position: refs/heads/master@{#8811}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: b9557a9bb7ed5f9aa1e7b3a64de4238572794ae3
1 file changed