Remove unnecessary get for non-null in PubSubProvider

addExtension() does that already.