Prevent undefined index error rather than masking the actual error

This happens when you forgot to add `return to true;` in `before()` or `after()`.

Even though this is PEBKAC, it obscures the actual error and killed a kitten everything it happens.