The Megan Fox-led film's marketing was surrounded by controversy.