Accept undefined as return value for before function.
Merge pull request #49 from kylerush/fix-before

Accept undefined as return value for before function.