Fix render layout with collection

According to the documentation `render layout:` should
be able to render provided collection. Previously, render
failed with 'Missing partial'.

Fix #17224
In case of layout is symbol like `render partial: 'user', layout: :my_zone_layout, collection: @users`