Definitely an odd moment from last night, as ref Corey Syvret directly passed a puck to a Bruins player after accidentally getting in the way of the initial play.
In accordance of the rules, officials are a part of the play, and should, under no circumstance, attempt to restore a play that they may have accidentally interfered with.