Convert embed to array before getting its properties, just to be sure.

From #6123.