Fix code that remove empty attributes from final link.