Accept undefined as return value for before function.