fix render_for_api on empty collections