Prevent undefined index error rather than masking the actual error

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