Bug 969868 - Use fallible allocations in some places in our plugin code; r=bsmedberg

It seems like the sizes for these data structures can be controlled from
Web content, and we are already prepared to deal with OOM conditions,
except that we are using infallible allocations by mistake.