E_INVALIDARG sometimes means OOM.

Gecko bug 996266
r=kamidphish