Bug 827857 - make NS_ProxyRelease() handle null pointers properly; r=jlebar