Race has everything to do with it, especially when it comes to black people making a film that hasnt been done like this before. And no, just because it had a black face doesnt mean it was a black movie, because it was marketed towards everyone, not just black people. Meteor Man was a scifi flick that was a "black movie" because it was marketed towards black people despite it most likely had nonblacks working on the film. "I Accidently Domed Your Son" was another black movie: intentionally hillarious with black humor targeted for a black audience. Same with Dinner with the Assassin.
And its different for Bay's movies because his lily-white Transformer 4 and the movies before that stay breaking box office records, despite the fact that it was pure trash. Entertaining yes, but no where near a artistic film. And people love it hence they are making more Transformer movies and not giving a fukk about the story. You think the franchise wouldve been this hot if it had a black star in place of Shea Lebouf and Mark Walburg? Or you think it wouldnt have matter??
Im not saying that AE couldve been done better, it could have been a better film, but to think that race wasnt involved at all for its horrible ratings and reviews again isnt paying attention. The same black people who support all of Perry, Issa Rae and the woman who created Greys Anatomy and Scandal dont watch sci fi. So of course its gonna target the Transformers, xmen, and spiderman crowds along with Will Smith fans. But those comic book fans didnt come out in drove and support the movie.....and quite possibly you will never see a film with a strong black lead make as much money as transformer 4....but thats another topic all together.