render returns nil when given :collection is empty