Patrick Stewart, best known for his work on "Star Trek: The Next Generation,'' is an actor of effortless class and presence, and "Masterminds'' is like an obstacle course he has to run. Can he make it from beginning to end of this dreadful movie without lowering himself to its level of idiocy? Or will he go down with the material? The answer to that question provides the only suspense and nearly the only interest in one of the worst films of the year.