Fix beam receiver crash.  Fixes #964.