Bug 950474 - Handle OOM in getOrCreateMatchResultTemplateObject. r=h4writer