bug 987624 - ensure the nsRDFLog variable is declared if logging is enabled. r=bsmedberg
bug 617008 - avoid creating a rendering context that we may not need. r=roc