Fix render with no element

Looks like this commit got lost in the transition to 0.10.

See #218 and #316