Fix some crashes with GOBLIN BEAM (#927{7,8}).