Mattel has apologized after the web address of a porn site was mistakenly printed on the packaging of its newly released “Wicked” dolls.