Chris Maguire grabbed a last-gasp winner to fire Sheffield Wednesday away from the drop zone and send Millwall to Wembley on the back of a 2-1 defeat.