RULE 135 – DELAY OF GAME/SHOOTING OR THROWING THE PUCK OUT OF PLAY
"v. A player who lifts the puck from the defending zone and hits the scoreclock or any structural object above the ice surface, causing a stoppage of play, will not be assessed a penalty."
Rightly or wrongly that is the rule the referees used.