vp8: improve memory allocation checks