Make Hooks.onCreateUser work on first creation, fix #4