Crash in beam_validator when returning a match context

Returning a match context would mean segfaulting the whole VM.