In that particular case, it seems that there's a calling convention for those handlers where the return values have special meaning.
For handlers that have a return value, that value has a special meaning, yes. Handlers that don't need to use that don't need a return value.
That means it's bad practice to put a void function into that "handlers" array/mapping.
This might be a documented feature, and actually recommended practice within this environment.