Same problem happens with plain embed elements as well. Follow-up fix to #5904.