Bad cast in RenderBox::computeReplacedLogicalHeightUsing