Part of #2006152: [meta] Don't call theme() directly anywhere outside drupal_render().
We are working today with this issue during Code Sprint UA
#3 looks good
Committed 585107c and pushed to 8.x. Thanks!
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.