Make rendering to null work and make it injectable

This allows render to return `null`. Under the hood, this renders a `script` tag.

closes #1127