Wendy Williams' ex-husband needs to go back to the drawing board if he wants to take legal action over her guardianship ... because a judge just tossed a lawsuit he tried to file on her behalf.