Issue #3484746 by grimreaper, pdureau: Use "is sequence" Twig test to prevent fatal errors when looping on slots
Closes #3484065