Eminem did songs with trash like Minaj, Nas did songs with trash like Khaled and Wayne, so has Jay, so did Scarface, so did many members of the Wu, so did Mobb Deep, Cube's done silly movies, LL completly switched his style, Rakim's long awaited comeback was below par and so forth.
It just happens. You simply cannot expect an artist to go through a career without making some decisions they probably wouldn't want to. It's just business.
Who gives it a shit if it makes them vulnerable, their legacy won't be built on some of their average decision making, it's built on their peak, prime and better work.