Every team in the NHL is required to have an Emergency Backup Goaltender(EBUG) Most teams have tryouts for the position and end up having some practice time with the team. This emergency goaltender must be available to both teams as we saw last night.
The EBUG can only be used if both a teams starting and backup goaltender are injured during the game.
Here's an
older article on the emergency backup goaltender.